<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>20-do-while循环</title>
	</head>
	<body>
		<script type="text/javascript">
			/**
				do {
				    // 循环体代码 - 条件表达式为 true 时重复执行循环体代码
				} while(条件表达式);
			 */
/* 			var x = 3;
			do{
				console.log('xxxxxxxxxxxxxxx');
			}while(x>4); */
			
			
			//打印1-100岁
			var y = 1;
			do{
				console.log(y);
				y++;
			}while(y<=100);
		</script>
	</body>
</html>
